#include <stdio.h>

int getSum(int n)
{
  int i = 1;
  int sum = 0;
  while(i <= n)
    sum += i++;

  return sum;
}

int main()
{
  int n = 10;
  printf("%d\n", getSum(n));
  return 0;
}
